import Vue from "vue";
import Router from "vue-router";
Vue.use(Router);

const routes = [
  {
    path:'/',
    redirect:'/login'
  },
  {
    path:'/login',
    component:() =>import ('../views/login.vue')
  },
  {
    path:'/register',
    component:() =>import ('../views/register.vue')
  },

  // 普通用户主页
  {
    path:'/home',
    component:() =>import ('../views/home.vue')
  },
  // 学科介绍
  {
    path:'/subjectIntroduction',
    component:() =>import ('../views/subjectIntroduction.vue')
  },
  // 集结页面
  {
    path: '/aggregatePage/operator/single',
    component:() =>import ('../views/aggregatePage/single.vue'),
  },{
    path: '/aggregatePage/operator/multiple',
    component:() =>import ('../views/aggregatePage/multiple.vue'),
  },{
    path: '/aggregatePage/operator/direct',
    component:() =>import ('../views/aggregatePage/direct.vue'),
  },
  {
    path: '/aggregatePage/operator/combine',
    component:() =>import ('../views/aggregatePage/combine.vue'),
  },
  //决策页面
  {
    path: '/methodPage/matrix',
    component:() =>import ('../views/methodPage/matrix.vue'),
  },
  // 发展事件
  {
    path: '/developmentEvent',
    component:() =>import ('../views/developmentEvent.vue'),
  },

  // 管理员用户主页
  {
    path: '/admin/home',
    component:() =>import ('../views/admin/home.vue'),
  },
  // 用户管理
  {
    path: '/admin/userManagement',
    component:() =>import ('../views/admin/userManagement.vue'),
  },

  // 个人主页
  {
    path: '/personalHome',
    component:() =>import ('../views/personalHome.vue'),
  },


  {
    path: '/3dlinechart',
    component:() =>import ('../components/LineChart3D.vue'),
  },

  
]

const router = new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
